//
//  ViewController.h
//  CCSD
//
//  Created by peterwang on 5/29/15.
//  Copyright (c) 2015 NeuroSky. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TGStream.h"
#import "TGStreamDelegate.h"
#import "TGStreamEnum.h"

#import "TGLibECG.h"
#import "TGLibECGDelegate.h"
#import "TGLibECGDictionary.h"

#import "LineGraphView.h"
@interface ViewController : UIViewController<TGStreamDelegate,TGLibECGDelegate>

//line Graph View
@property (weak, nonatomic) IBOutlet LineGraphView *ECGGraph;

//labels
@property (weak, nonatomic) IBOutlet UILabel *rrInterval;
@property (weak, nonatomic) IBOutlet UILabel *heartRate;
@property (weak, nonatomic) IBOutlet UILabel *robustHR;
@property (weak, nonatomic) IBOutlet UILabel *hrv;
@property (weak, nonatomic) IBOutlet UILabel *mood;
@property (weak, nonatomic) IBOutlet UILabel *heartAge;
@property (weak, nonatomic) IBOutlet UILabel *stress;
@property (weak, nonatomic) IBOutlet UILabel *signalQuality;
@property (weak, nonatomic) IBOutlet UILabel *RPeakDetected;
@property (weak, nonatomic) IBOutlet UILabel *HeartBeatCount;
@property (weak, nonatomic) IBOutlet UILabel *overallSignalQuality;

@property (weak, nonatomic) IBOutlet UILabel *appVersion;
@property (weak, nonatomic) IBOutlet UILabel *sdkVersion;

//buttons
@property (weak, nonatomic) IBOutlet UIButton *profile;
@property (weak, nonatomic) IBOutlet UIButton *start;
@property (weak, nonatomic) IBOutlet UIButton *stop;


- (IBAction)readFile:(id)sender;

@property (weak, nonatomic) IBOutlet UIButton *zoom;
@property (weak, nonatomic) IBOutlet UIButton *gridOn;
@property (weak, nonatomic) IBOutlet UIButton *modeSwitch;

//IBAction
- (IBAction)profileAction:(id)sender;
- (IBAction)startAction:(id)sender;
- (IBAction)stopAction:(id)sender;

- (IBAction)zoomAction:(id)sender;
- (IBAction)gridOnAction:(id)sender;
- (IBAction)modeSwitchAction:(id)sender;

@end

